package strategies

// TestStrategyGroup  所有TestStrategy策略的集合
type TestStrategyGroup struct {
	Name       string          //策略名为test_group
	Strategies []*TestStrategy //数组中每个元素都为一个TestStrategy实例
}

// NewTestStrategyGroup 创建策略组
func NewTestStrategyGroup() *TestStrategyGroup {
	strategyGroup := new(TestStrategyGroup)
	strategyGroup.Name = "TestGroup"
	return strategyGroup
}

func (testStrategyGroup TestStrategyGroup) CreateStrategy() {
	strategy := NewTestStrategy()
	testStrategyGroup.Strategies = append(testStrategyGroup.Strategies, strategy)
}

// TestStrategy 测试策略
type TestStrategy struct {
	Name string
}

func NewTestStrategy() *TestStrategy {
	strategy := new(TestStrategy)
	return strategy
}
